package com.boc.ewr.bcimp.service.impl;

import com.boc.ewr.bcimp.entity.OcrHandedList;
import com.boc.ewr.bcimp.entity.SignMismatchFocusList;
import com.boc.ewr.bcimp.mapper.OcrHandedListMapper;
import com.boc.ewr.bcimp.service.IOcrHandedListService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;

/**
 * @Description: OCR已上交账单清单
 * @Author: jeecg-boot
 * @Date:   2023-04-20
 * @Version: V1.0
 */
@Service
public class OcrHandedListServiceImpl extends ServiceImpl<OcrHandedListMapper, OcrHandedList> implements IOcrHandedListService {

    //批量导入
    @Transactional
    public boolean initSaveBatch(Collection<OcrHandedList> entityList, Boolean flag){
        if(entityList.isEmpty() || entityList.size() == 0){
            return false;
        }
        //直接叠加，不去除重复项
        //保存数据
        return saveBatch(entityList, DEFAULT_BATCH_SIZE);
    }
}
